#include<bits/stdc++.h>
using namespace std;
int n,a[100005],cnt;
bool f[100005],b[100005];
int main(){
freopen("duel.in","r",stdin);
freopen("duel.out","w",stdout);
cin>>n;
for(int i=1;i<=n;i++)cin>>a[i];
sort(a+1,a+1+n);
for(int i=1;i<=n;i++){
for(int j=i;j>=1;j--){
if(a[j]<a[i]&&b[i]==0&&f[j]==0){
b[i]=1;
f[j]=1;
break;
}
}
}
for(int i=1;i<=n;i++){
if(f[i]==0)cnt++;
}
cout<<cnt;
return 0;
}
